//
//  CustomShapeView.m
//  FunnyOfTheDay
//
//  Created by Santa  Clause on 4/18/09.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import "CustomShapeView.h"


@implementation CustomShapeView

@synthesize strokeColor;
@synthesize strokeWidth;
@synthesize backColor;

- (id)initWithCoder:(NSCoder *)decoder
{
    if (self = [super initWithCoder:decoder])
    {
        self.strokeWidth = kDefaultStrokeWidth;
    }
    return self;
}

- (id)initWithFrame:(CGRect)frame 
{
    if (self = [super initWithFrame:frame]) 
    {
        // Initialization code
        super.opaque = NO;
        self.strokeWidth = kDefaultStrokeWidth;
        self.backgroundColor = kDefaultBackColor;
    }
    return self;
}

- (void)setBackgroundColor:(UIColor *)newBGColor
{
	self.strokeColor = newBGColor;
	self.backColor = newBGColor;
	super.backgroundColor = [UIColor clearColor];
}

- (void)setOpaque:(BOOL)newIsOpaque
{
    // Ignore attempt to set opaque to YES.
}

- (void)dealloc {
    [strokeColor release];
    [super dealloc];
}


@end
